audit: close graceful fallback and runtime wiring gaps - #89
audit: close graceful fallback and runtime wiring gaps#89nicholaslawrence-hub wants to merge 71 commits into
Conversation
🤖 Claude Code Review🐛 Bugs
🔒 Security
⚡ Performance
📊 Reproducibility
💡 Suggestions
|
🤖 Claude Code ReviewReview🐛 Bugs
tolerance = max(1e-12, total * 1e-9)
if max(sc_score, mem_score) < 1.0: # sc_score could be None here
return COMPUTE_BOUNDThe guard
data_stall = 1.0 - gpu - sync - cpuThe overlap guard allows 🔒 Security
⚡ Performance
gpu_coverage_ok = all(value is not None for value in gpu_values)
gpu_overall = max(value for value in gpu_values if value is not None) if gpu_coverage_ok else NoneWhen 📊 Reproducibility
💡 Suggestions
|
Code Review by GeminiThe pull request introduces a comprehensive audit and hardening of runtime paths, focusing on explicit fallback handling, strict validation, and improved diagnostics. The changes are extensive and consistently apply principles of robustness, preventing missing or malformed evidence from leading to confident but incorrect claims. Here's a breakdown of the review: Overall ImpressionThis is a substantial and well-executed audit. The changes demonstrate a deep understanding of potential failure modes and address them systematically across various components. The introduction of explicit Specific Issues and Suggestions
|
🤖 Claude Code ReviewReview Feedback🐛 Bugs
tolerance = max(1e-12, total * 1e-9)
warnings.warn(..., stacklevel=2)
if mem_score >= 1.0 and (sc_score is None or mem_score > sc_score):
return MEMORY_BOUND
if sc_score is None:
return UNCLASSIFIED
if max(sc_score, mem_score) < 1.0:
return COMPUTE_BOUND
return IDLE_STALL if sc_score >= mem_score else MEMORY_BOUNDIf
sar_output = open(bundle.host_sar, "w")If
gpu_coverage_ok = all(value is not None for value in gpu_values)
gpu_overall = max(...) if gpu_coverage_ok else NoneIf only some runs lack telemetry 🔒 Security
"--pid", str(workload.pid),
⚡ Performance
📊 Reproducibility
def optimize_af2(stage, seed, *, n_proteins, max_len, warmup, plddt_tol):The new input validation guards 💡 Suggestions
if "unattributed" in components_s:
raise ValueError("'unattributed' is a reserved partition key")
Missing |
Summary
This PR audits and hardens runtime paths where missing, malformed, or
unverified GPU/NVTX/CUPTI/config evidence could become confident claims.
The detailed ledger is in AUDIT.md. The branch is based on the
current remote
main(f63879b) and keeps the upstream sparse-MoE architectureupdates while adding explicit audit boundaries.
What changed
tracing, benchmark, telemetry, and intervention fallbacks.
node-level and graph-level fallback provenance for bytes, peaks, hardware,
estimates, and unpriced dimensions.
saturation, and partial coverage visible in reports and artifacts.
stale or unverifiable provenance, same-run validation, and shape/identity
drift.
scheduler/attach artifacts, reports, summaries, and CLI status.
importer serialization, and live graph dispatch.
No generated planner JSON is checked into the repository; runtime prediction
JSON remains an artifact produced only by the relevant execution path.
Validation
git diff --check: clean.oversized generated comment (
Argument list too long); this is an actiontransport limitation, not a source, test, or lint failure. The job was
rerun once and reproduced the same failure.
Real CUDA/CUPTI smoke evidence remains environment-dependent; this CPU host
reports those probes as explicit skips/refusals when the toolkit and Torch are
unavailable.